package com.acme.ioniolab.serialization;

import java.io.Serializable;
import java.util.Random;

public class SensorData implements Serializable {
	private double longitude;
	private double latitude;
	private double altitude;
	private double temp;
	private static Random rand = new Random();
	
	public SensorData(double longitude, double latitude, double altitude,
			double temp) {
		this.longitude = longitude;
		this.latitude = latitude;
		this.altitude = altitude;
		this.temp = temp;
	}

	public SensorData() {
		this.latitude = rand.nextDouble();
		this.longitude = rand.nextDouble();
		this.altitude = rand.nextDouble();
		this.temp = rand.nextDouble();
	}
	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getAltitude() {
		return altitude;
	}

	public void setAltitude(double altitude) {
		this.altitude = altitude;
	}

	public double getTemp() {
		return temp;
	}

	public void setTemp(double temp) {
		this.temp = temp;
	}
	
	
}